package com.tjetc.controller;

import com.tjetc.service.impl.SpotRankTagServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
public class SpotRankTagController {

    @Autowired
    private SpotRankTagServiceImpl spotRankTagService;

    @PostMapping("update")
    public String updateNow() {
        spotRankTagService.updateSpotTags();
        return "手动更新标签成功";
    }
}
